package 字符串类题目;

import java.util.ArrayList;

/**
 * @author zc
 * @version 1.0
 * @date 2021/9/2 17:36
 */
public class Demo7 {
    public static void main(String[] args) {

        ArrayList<String> list = new ArrayList<>();
        list.add("abc");
        list.add("123");
        list.add("zxy");

        String[] arrays = list.toArray(new String[list.size()]);

        for(int i = 0 ;i<arrays.length;i++){
            System.out.println(arrays[i]+" ");
        }
    }
}
